<template>
  <div class="login-container">
    <div class="box-item desc">
      <div class="welcome">
        <p>欢迎使用 UniStack-crc </p>
        <p class="sub-welcome">{{ underlineToHump(appStore.getTitle) }}</p>
      </div>
      <img class="welcome-img" src="/@/assets/imgs/login/left-bg2.png" />
    </div>
    <div class="box-item login">
   <LoginForm class="m-auto h-auto p-25px lt-xl:(rounded-3xl light:bg-white)" />
    </div>
    <div class="footer">Powered by UniStack</div>
  </div>
</template>
<script lang="ts" setup>
import { underlineToHump } from '@/utils'
import { useDesign } from '@/hooks/web/useDesign'
import { useAppStore } from '@/store/modules/app'
import { LoginForm } from './components'

defineOptions({ name: 'Login' })

const { t } = useI18n()
const appStore = useAppStore()
const { getPrefixCls } = useDesign()
const prefixCls = getPrefixCls('login')
</script>

<style lang="scss" scoped>
.login-container {
  width: 100%;
  height: 100%;
  background: url(/@/assets/imgs/login/login-bg4.jpg) no-repeat;
  background-size:100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  .box-item {
    width: 444px;
    height: 370px;
    &.desc {
      background: #ffffff;
      border-radius: 12px 0px 0px 12px;
      box-shadow: 0px 16px 73px 8px rgba(203, 203, 203, 0.2);
      padding: 23px 25px;
    }
    &.login {
      background: #ffffff;
      border-radius: 0px 12px 12px 0px;
      padding: 23px 23px;
      position: relative;
    }
    .welcome {
      padding-top: 1px;
      p{
        color: #333333;
        line-height: 25px;
        letter-spacing: 0.26px;
        text-align: center;
        font-weight: 700;
        font-size: 26px;
      }
      .sub-welcome{
        padding: 10px;
        font-size: 18px;
        font-weight: 700;
        text-align: center;
        color: #ffffff;
        line-height: 25px;
        letter-spacing: 0.26px;
        opacity: 0.96;
        background: #0662d1;
        border-radius: 22px 22px 2px 22px;
      }
    }
    .welcome-img{
      width: 250px;
      height: 250px;
      margin-left: 90px;
    }
    .btn {
      width: 350px;
      height: 50px;
      background: #1748FD;
      border-radius: 4px;
      font-size: 16px;
      font-weight: 700;
      text-align: center;
      color: #ffffff;
      line-height: 50px;
      cursor: pointer;
    }
  }
  .footer{
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1010;
    height: 40px;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight:700;
  }
}


</style>
